<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="templateEntity :: entity_header(~{::title})">
    <meta charset="UTF-8"/>
    <title></title>
</head>
<body th:replace="templateEntity :: entity_body(~{::#content-container},~{::script})">
<div id="content-container">
    <div class="layui-custom-inline">
        <div class="layui-form-item layui-custom-form-item">
            <label class="layui-form-label">楼宇名称</label>
            <div class="layui-input-block">
                <input type="text" name="lymc" th:value="${entity.lymc}" lay-verify="required" maxlength="100"
                       placeholder="请输入楼宇名称" autocomplete="off" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item layui-custom-form-item">
            <label class="layui-form-label">所属区域</label>
            <div class="layui-input-block">
                <select name="ssqy" lay-search>
                    <option value="" th:text="--请选择区域--"></option>
                    <option th:each="p:${listLyqy}" th:value="${p.id}" th:text="${p.qymc}"
                            th:selected="${entity.ssqy == p.id}?true:false">
                    </option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-custom-inline">
        <div class="layui-form-item ">
            <label class="layui-form-label">说明</label>
            <div class="layui-input-block">
                <textarea type="text" name="sm" th:text="${entity.sm}" lay-verify="required"
                          placeholder="请输入备注" autocomplete="off"class="layui-textarea"></textarea>
            </div>
        </div>
    </div>
    <div class="layui-custom-inline">
        <div class="layui-form-item layui-custom-form-item">
            <label class="layui-form-label ">是否可用</label>
            <div class="layui-input-block layui-custom-input-block">
                <input type="radio" name="sfqy" value="1" title="启用"
                       th:checked="${entity.sfqy ==null || entity.sfqy == 1}?true:false"/>
                <input type="radio" name="sfqy" value="0" title="禁用" th:checked="${entity.sfqy == 0}?true:false"/>
            </div>
        </div>
    </div>
</div>
<script></script>
</body>
</html>